package com.hiultra.archive.service.impl;

import java.util.List;

import com.hiultra.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
import com.hiultra.archive.mapper.ArchiveBoxIllegalDetailRecordsMapper;
import com.hiultra.archive.domain.ArchiveBoxIllegalDetailRecords;
import com.hiultra.archive.service.IArchiveBoxIllegalDetailRecordsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 非法携带详情Service业务层处理
 *
 * @author 派大星
 * @date 2024-07-23
 */
@Service
public class ArchiveBoxIllegalDetailRecordsServiceImpl implements IArchiveBoxIllegalDetailRecordsService
{
    @Autowired
    private ArchiveBoxIllegalDetailRecordsMapper archiveBoxIllegalDetailRecordsMapper;

    /**
     * 查询非法携带详情
     *
     * @param id 非法携带详情主键
     * @return 非法携带详情
     */
    @Override
    public ArchiveBoxIllegalDetailRecords selectArchiveBoxIllegalDetailRecordsById(Long id)
    {
        return archiveBoxIllegalDetailRecordsMapper.selectArchiveBoxIllegalDetailRecordsById(id);
    }

    /**
     * 查询非法携带详情列表
     *
     * @param archiveBoxIllegalDetailRecords 非法携带详情
     * @return 非法携带详情
     */
    @Override
    public List<ArchiveBoxIllegalDetailRecords> selectArchiveBoxIllegalDetailRecordsList(ArchiveBoxIllegalDetailRecords archiveBoxIllegalDetailRecords)
    {
        return archiveBoxIllegalDetailRecordsMapper.selectArchiveBoxIllegalDetailRecordsList(archiveBoxIllegalDetailRecords);
    }

    /**
     * 新增非法携带详情
     *
     * @param archiveBoxIllegalDetailRecords 非法携带详情
     * @return 结果
     */
    @Override
    public int insertArchiveBoxIllegalDetailRecords(ArchiveBoxIllegalDetailRecords archiveBoxIllegalDetailRecords)
    {
        return archiveBoxIllegalDetailRecordsMapper.insertArchiveBoxIllegalDetailRecords(archiveBoxIllegalDetailRecords);
    }

    /**
     * 修改非法携带详情
     *
     * @param archiveBoxIllegalDetailRecords 非法携带详情
     * @return 结果
     */
    @Override
    public int updateArchiveBoxIllegalDetailRecords(ArchiveBoxIllegalDetailRecords archiveBoxIllegalDetailRecords)
    {
        return archiveBoxIllegalDetailRecordsMapper.updateArchiveBoxIllegalDetailRecords(archiveBoxIllegalDetailRecords);
    }

    /**
     * 批量删除非法携带详情
     *
     * @param ids 需要删除的非法携带详情主键
     * @return 结果
     */
    @Override
    public int deleteArchiveBoxIllegalDetailRecordsByIds(Long[] ids)
    {
        return archiveBoxIllegalDetailRecordsMapper.deleteArchiveBoxIllegalDetailRecordsByIds(ids);
    }

    /**
     * 删除非法携带详情信息
     *
     * @param id 非法携带详情主键
     * @return 结果
     */
    @Override
    public int deleteArchiveBoxIllegalDetailRecordsById(Long id)
    {
        return archiveBoxIllegalDetailRecordsMapper.deleteArchiveBoxIllegalDetailRecordsById(id);
    }


    /**
     * 获取非法携带档案盒详细信息
     */
    @Override
    public List<ArchiveBoxIllegalDetailRecords> selectArchiveBoxillegalByRecordId(String recordId)
    {
        return archiveBoxIllegalDetailRecordsMapper.selectArchiveBoxillegalByRecordId(recordId);
    }
}
